package facadePattern

/**
 * 秘书
 */
class Secretary {
    private val airport = Airport()
    private val restaurant = Restaurant()
    private val hotel = Hotel()
    private val chauffeur = Chauffeur()

    //安排出差
    fun trip(from: String, to: String, days: Int) {
        airport.bookTicket(from, to)
        hotel.reserve(days)
        chauffeur.driveTo("机场")
    }

    /**
     * 安排饭局
     */
    fun repast(num: Int) {
        restaurant.reserve(num)
        chauffeur.driveTo("酒店")
    }
}